var App = (function(App, $, _){

	'user strict';

	var reveal = {};
	var moduleName = "reveal";

	reveal.clicked = function() {
		//App.trigger("finishGame");

		gapi.hangout.data.setValue("gameData",JSON.stringify(host.gameStatus));
		currentGameState = gapi.hangout.data.getValue("gameState");
		if(currentGameState != "finished"){
			gapi.hangout.data.setValue("gameState","finished");
		}
	}

	reveal.init = function() {
		if( App.isHost() === true) {
			console.log("You have reveal privileges");
			$("#reveal").click(reveal.clicked);

			$("#cp-buttons").show();
			$("#ticket").width(472);
		}
	};

	App.modules = App.hasOwnProperty("modules") ? App.modules : {};
	App.modules[moduleName] = reveal;

	return App;

}(App || {}, $, _));